.layout {
  min-height: 100vh;
  background: #f0f2f5;
}

.content {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;

  @media screen and (max-width: 768px) {
    padding: 16px;
  }
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;

  @media screen and (max-width: 576px) {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

.breadcrumb {
  :global {
    .ant-breadcrumb-link {
      color: #666;
      
      &:hover {
        color: #1890ff;
      }
    }

    .anticon {
      margin-right: 4px;
    }
  }
}

.backButton {
  display: flex;
  align-items: center;
  height: 40px;
  border-radius: 20px;
  padding: 0 20px;
  transition: all 0.3s ease;

  :global {
    .anticon {
      margin-right: 8px;
    }
  }

  &:hover {
    transform: translateX(-4px);
  }

  @media screen and (max-width: 576px) {
    width: 100%;
    justify-content: center;
  }
}

.spinner {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;

  :global {
    .ant-spin-container {
      width: 100%;
    }
  }
}

.tabsContainer {
  margin-top: 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  padding: 24px;

  :global {
    .ant-tabs-nav {
      margin-bottom: 24px;
    }

    .ant-tabs-tab {
      padding: 12px 0;
      font-size: 16px;
      margin-right: 32px;

      .anticon {
        margin-right: 8px;
      }
    }

    .ant-tabs-ink-bar {
      height: 3px;
      border-radius: 3px;
    }
  }

  @media screen and (max-width: 576px) {
    padding: 16px;

    :global {
      .ant-tabs-tab {
        padding: 8px 0;
        font-size: 14px;
        margin-right: 24px;
      }
    }
  }
}

.aboutSection {
  padding: 24px;
  background: #fafafa;
  border-radius: 8px;

  h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 24px;
  }

  h3 {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 24px 0 16px;
  }

  .biography {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    white-space: pre-wrap;
    margin-bottom: 32px;
  }

  .education,
  .exhibitions,
  .awards {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    white-space: pre-wrap;
    margin-bottom: 24px;

    &:last-child {
      margin-bottom: 0;
    }
  }

  @media screen and (max-width: 576px) {
    padding: 16px;

    h2 {
      font-size: 20px;
      margin-bottom: 16px;
    }

    h3 {
      font-size: 16px;
      margin: 16px 0 12px;
    }

    .biography {
      font-size: 14px;
      margin-bottom: 24px;
    }

    .education,
    .exhibitions,
    .awards {
      font-size: 14px;
      margin-bottom: 16px;
    }
  }
}

// 暗色主题适配
@media (prefers-color-scheme: dark) {
  .layout {
    background: #141414;
  }

  .breadcrumb {
    :global {
      .ant-breadcrumb-link {
        color: #999;
        
        &:hover {
          color: #177ddc;
        }
      }
    }
  }

  .backButton {
    background: #1f1f1f;
    border-color: #434343;
    color: #fff;

    &:hover {
      background: #2f2f2f;
      border-color: #434343;
    }
  }

  .tabsContainer {
    background: #1f1f1f;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);

    :global {
      .ant-tabs-tab {
        color: #999;

        &:hover {
          color: #177ddc;
        }
      }

      .ant-tabs-tab-active {
        color: #177ddc;
      }

      .ant-tabs-ink-bar {
        background: #177ddc;
      }
    }
  }

  .aboutSection {
    background: #141414;

    h2, h3 {
      color: #fff;
    }

    .biography,
    .education,
    .exhibitions,
    .awards {
      color: #999;
    }
  }
}

// 动画效果
.tabsContainer {
  animation: fadeIn 0.3s ease;
}

.aboutSection {
  animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}